package demo3;

import java.lang.reflect.Array;
import java.util.ArrayList;
import java.util.List;

public class Assign {
private static List<Assign>assigns=new ArrayList<>();
public static void mod(ArrayList assigns){
    System.out.print("{");
    for (int i = 0; i <assigns.size() ; i++) {
        System.out.print(" "+assigns.get(i)+" ");
        if (i<assigns.size()-1){
            System.out.print("@");
        }
    }
    System.out.print("}");
}
    public static void main(String[] args) {
        ArrayList list=new ArrayList();
        int num=10;
        int num1=20;
        int num2=30;
        list.add(num);
        list.add(num1);
        list.add(num2);
        System.out.println(list);
        mod(list);

    }
}
